59baa48959c0cfc52ddd7d94a84fb9011da301bf,src/java/org/tensorics/core/tensor/lang/TensorStructurals.java,TensorStructurals,mergeContextIntoShape,#Tensor#,146

Before Change


            throw new IllegalArgumentException("an empty context can't be merged into the positions");
        }
        Builder<S> builder = ImmutableTensor
                .builder(Sets.union(tensor.shape().dimensionSet(), tensor.context().getPosition().dimensionSet()));
        builder.putAllAt(tensor, tensor.context().getPosition());
        return builder.build();
    }

After Change


            throw new IllegalArgumentException("an empty context can't be merged into the positions");
        }
        Builder<S> builder = ImmutableTensor
                .builder(Sets.union(tensor.shape().dimensionSet(), tensor.context().dimensionSet()));
        builder.putAllAt(tensor, (Position) tensor.context());
        return builder.build();
    }